//----------------------------------------------------------------------------
//  ,-.
// /_\___ ,   CA Framework
// '  ___\    (C) Riccardo Capra - http://riccar.do
//  //   \\
//----------------------------------------------------------------------------

#include "NjExample01.h"
#include "NjFundamentalTypesTest.h"

//----------------------------------------------------------------------------
void NjFundamentalTypesTest::Run()
{
	NJ_COMPILE_ASSERT(sizeof(NjUint8)==1);
	NJ_COMPILE_ASSERT(sizeof(NjUint16)==2);
	NJ_COMPILE_ASSERT(sizeof(NjUint32)==4);
	NJ_COMPILE_ASSERT(sizeof(NjUint64)==8);

	NJ_COMPILE_ASSERT(sizeof(NjInt8)==1);
	NJ_COMPILE_ASSERT(sizeof(NjInt16)==2);
	NJ_COMPILE_ASSERT(sizeof(NjInt32)==4);
	NJ_COMPILE_ASSERT(sizeof(NjInt64)==8);

	NJ_COMPILE_ASSERT(sizeof(NjFloat32)==4);
	NJ_COMPILE_ASSERT(sizeof(NjFloat64)==8);
	NJ_COMPILE_ASSERT(sizeof(NjFloat)==4 || sizeof(NjFloat)==8);

	NJ_COMPILE_ASSERT(sizeof(NjChar8)==1);
	NJ_COMPILE_ASSERT(sizeof(NjChar16)==2);
	NJ_COMPILE_ASSERT(sizeof(NjChar32)==4);
	NJ_COMPILE_ASSERT(sizeof(NjChar)==1);
	NJ_COMPILE_ASSERT(sizeof(NjChar)==sizeof('a'));
	NJ_COMPILE_ASSERT(sizeof(NjCharW)==2 || sizeof(NjCharW)==4);
	NJ_COMPILE_ASSERT(sizeof(NjCharW)==sizeof(L'a'));

	NJ_COMPILE_ASSERT(sizeof(NjUint)==sizeof(void *));
	NJ_COMPILE_ASSERT(sizeof(NjInt)==sizeof(void *));
}
//----------------------------------------------------------------------------
